
		use "${source}online_survey_dataset.dta", clear 
	
	
global option varlabels tex plain fragment bdec() se starloc(1) starlevels(10 5 1) nocenter ///
		summstat(r2\N) summtitle("R^2" \"Observations") summdec(3 0) blankrows 
		

		
	global m1 	
	global m2  age upper_secon sometertiary  work lookjob  hh_chore   studying_1  ///
				family_emigrated_to_us_1  living_area_1 living_area_2 ///
				region_birth_1 region_birth_2 region_birth_3 region_birth_4 ///
					

	global model_1   "Socio-demographic dummies", "No" 
	global model_2   "Socio-demographic dummies", "Yes" 
	

* TABLE 6  and TABLE  C.7
	
	global dependent prefer_migUS  likely_migUS_future step_migUS   importance_marriage   importance_salary_difference 
	
	outreg,clear(dep_final)
	outreg,clear(dep_final_detail)
	foreach outcome in $dependent {	
	
		local labout : variable label `outcome'			
		
		tempvar samplee
		g `samplee' = 1
		
		qui su `outcome' if `samplee'==1 & primed_marriage==0 
		local av: di %4.3f r(mean)	
			
		qui reg  `outcome' primed_marriage   ${m2}  if `samplee' ==1 ,robust  
	    test primed_marriage
		qui outreg, merge(dep_final) keep(primed_marriage  )  ctitle("Dep:","`labout'")  nod   ///
		addrows( "","" \  "Average outcome in control group", `av'  \ "","" \  "${model_2}")  ${option} 		
		
		qui reg  `outcome' primed_marriage   ${m1}  if `samplee' ==1 ,robust  
	    test primed_marriage
		qui outreg, merge(dep_final_detail)   ctitle("Dep:","`labout'")  nod   ///
		addrows( "","" \  "Average outcome in control group", `av'  \ "","" \  "${model_1}")  ${option} 		
		
		qui reg  `outcome' primed_marriage  ${m2} if `samplee' ==1 ,robust  
	    qui outreg, merge(dep_final_detail)  ctitle("Dep:","`labout'") nod   ///
		addrows( "","" \  "Average outcome in control group", `av'  \ "","" \  "${model_2}")  ${option} 		
		test primed_marriage
	}
	
	
	outreg using "${result}Table6.smcl"  , title(Table 6: Effect of priming on migration intentions)   replace replay(dep_final) ${option} 
	outreg using "${result}TableC7.smcl" , title( Table C.7: Effect of priming on migration intentions)   replace replay(dep_final_detail) ${option} 
	
	
	
* Table C.8: Correlations between expectations of future spouse and migration intentions
	

	 global VAR2 visualize_sp_1   di_mex_us   

	 
	outreg,clear(dep_final)
	foreach outcome in $dependent {	
	
		local labout : variable label `outcome'			
		
		tempvar samplee
		g `samplee' = 1
		
		qui su `outcome' if `samplee'==1 & primed_marriage==0 
		local av: di %4.3f r(mean)	
			
		qui reg  `outcome' $VAR2  ${m2}  if `samplee' ==1 ,robust  
		qui outreg, merge(dep_final) keep(  $VAR2  )  ctitle("Dep:","`labout'")  nod   ///
		addrows( "","" \  "Average outcome in control group", `av'  \ "","" \  "${model_2}")  ${option} 		
		
	}
	
	outreg using "${result}TableC8.smcl"  , title(Table C.8: Correlations between expectations of future spouse and migration intentions)  replace replay(dep_final) ${option} 
	
			
		
		